package logmanager.view_connection;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import logmanager.view.Principal;

//classe d'action de deconnection
public class ActionDisconnect implements MouseListener {
	private Principal p;	
	
	public ActionDisconnect(Principal p) {
		super();
		this.p = p;
	}

	public void mouseClicked(MouseEvent arg0) {
		p.disconnect();
	}

	public void mouseEntered(MouseEvent arg0) {}
	public void mouseExited(MouseEvent arg0) {}
	public void mousePressed(MouseEvent arg0) {}
	public void mouseReleased(MouseEvent arg0) {}

}
